Allow power-off to work with USB.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 31 Aug 2004 21:22:58 +0000 (21:22 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 31 Aug 2004 21:22:58 +0000 (21:22 +0000)
gpsbabel/jeeps/gpscom.c

index 1e45be28e66dec313016a255b8d044daad2c72f0..80bee754c755342651ebdddf98a43995353e38e1 100644 (file)
@@ -41,6 +41,8 @@ int32 GPS_Command_Off(const char *port)
 
     GPS_Util_Little();
 
+    gps_is_usb = (0 == strncmp(port, "usb:", 4));
+
     if(!GPS_Serial_On(port, &fd))
        return gps_errno;